module.exports = {
	getMerchantById: getMerchantById
};

var db = require('../common/database/db');
var http = require('http');
var idHelper = require('../common/utils/id-helper');
function getMerchantById(id, cb) {
	db.queryWithParamSingle("select *  from merchant where id=?", [id], function (err, data) {
		if (data.logo)
			data.logo = "http://app.menpuji.com/api/merchants/" + data.id + "/logo/bin";
		cb(err, data);
	});
}

